const express = require('express');

// 导入getAllLaunches方法
const {
    httpGetAllLaunches,
    httpAddNewLaunch,
    httpAbortLaunch,
} = require('./launches.controller');

const launchesRouter = express.Router();

launchesRouter.get('/', httpGetAllLaunches);
launchesRouter.post('/', httpAddNewLaunch);

launchesRouter.delete('/:id',httpAbortLaunch);

module.exports = launchesRouter;